package de.hska.reka.websockets.client.annotationProcessors;

import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.stereotype.Component;

import de.hska.reka.websockets.annotationProcessors.WebsocketAddressProcessor;
import de.hska.reka.websockets.annotationProcessors.WebsocketAnnotationProcessor;
import de.hska.reka.websockets.annotationProcessors.WebsocketCallbackAnnotationProcessor;
import de.hska.reka.websockets.annotationProcessors.WebsocketProcessor;
import de.hska.reka.websockets.annotations.WebSocket;
import de.hska.reka.websockets.annotations.WebSocketCallback;
import de.hska.reka.websockets.annotations.WebSocketRef;

@Component
public class WebsocketClientProcessor extends WebsocketProcessor {
	public WebsocketClientProcessor() {
		this.otherProcessors = new BeanPostProcessor[] {
				new WebsocketAnnotationProcessor(WebSocketCallback.class),
				new WebsocketCallbackAnnotationProcessor(WebSocket.class),
				new WebsocketCallbackAnnotationProcessor(WebSocketRef.class),
				new WebsocketAddressProcessor(), };
	}
}
